package com.bonc.modules.business.service;

import com.bonc.datasource.annotation.DataSource;

import java.io.File;
import java.io.InputStream;

public interface FileSystemService {

    String uploadFile(String directory, String sftpFileName, InputStream inputStream) throws Exception;

    boolean uploadFile1(String directory, String sftpFileName, InputStream inputStream) throws Exception;

    String uploadFile(String targetPath, File file) throws Exception;

    //派申请单时，需要将本地文件sftp上传到集团目录下
    String uploadFile3(String remotePath, String remoteFileName,String localPath, String localFileName,int flags);

    //回复集团工单时，需要将本地文件sftp到集团目录下
    String uploadFile4(String remotePath, String remoteFileName,String localPath, String localFileName,int flags);

    boolean uploadFile1(String targetPath, File file) throws Exception;

    //将集团文件sftp到239目录下
    boolean uploadFile2(String remotePath, String remoteFileName,String localPath, String localFileName);

    boolean downloadFile(String directory, String downloadFile, String saveFile) throws Exception;

    boolean downloadFile1(String directory, String downloadFile, String saveFile) throws Exception;

    boolean deleteFile(String directory, String targetPath) throws Exception;
}
